@extends("h5.layouts.main")
@section('content')
    <?php
           /// exit("f");
    use App\admin\Service\OA;
    use App\Models\MoneyBilModel;
    $out_trade_no = $_GET['out_trade_no'] ?? '';
    if ($out_trade_no == '') {
        \App\Jobs\Fun::showmsg("参数错误");
    }
    $MoneyBilModel = MoneyBilModel::where('out_trade_no', $out_trade_no)->first();

    ?>
    <div class="divbodyH5 moneyDiv successH5">
        <div id="settingTitle">
            <b>充值</b>
            <a class="back" href="/h5/my/money/"> <img src="/h5/images/return.png" id="settingRtn"></a>
        </div>

        <div class="myTable">


            <div class="chongzhidiv">

                <div class="chongzhiinput">
                        <span class="label">充值金额:
                       ¥ <?= $MoneyBilModel->money  ?></span>
                </div>

                <span class="label">现有余额: ¥ <?= OA::$user->getMoney()  ?></span>
            </div>

            <div class="chongzhiinput">
                <h3 class="  value"><?php
                    if($MoneyBilModel->status == MoneyBilModel::status_Success){
                    ?>
                    <img src="/h5/images/chengg.png" class="chengg"/>
                    <span class="chenggspan">充值成功</span>
                    <?php
                    }else {
                        echo "<span class=\"chenggspan red\">请刷新后查看</span>";
                    }


                    ?></h3>
            </div>


        </div>

    </div>



    </div>
    <script>
        new MC.Money.chongzhi();

    </script>

@stop